package com.duobaoyu.dby.supply.biz.client.resource;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.duobaoyu.dby.supply.biz.client.resource.bean.dto.StateMappingDTO;
import com.duobaoyu.dby.supply.biz.client.resource.bean.vo.StateMappingVO;

/**
 * @author liyang
 * @version 1.0.0
 * @ClassName ResourceStateMappingAdminClient
 * @Description 状态映射admin client
 * @createTime 15:14:00 2023/10/08
 */
public interface ResourceStateMappingAdminClient {

    boolean addStateMapping(StateMappingDTO stateMapping);

    boolean updateStateMapping(StateMappingDTO stateMapping);

    boolean deleteStateMapping(Long stateMappingId);

    StateMappingVO queryStateMappingDetail(Long stateMappingId);

    Page<StateMappingVO> queryStateMappingPage(StateMappingDTO stateMapping);

    boolean initializationRedisCache();

    boolean clearLocalCache();
}
